home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-02-17 | 5.3 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 56 6f 6c 2e 63 00 | 00 00 00 00 00 00 00 00 |..Vol.c.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 12 b8 00 | 00 01 50 a9 89 4c 31 a9 |........|..P..L1.|
|00000060| 89 4c 31 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.L1.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 93 d3 00 00 |........|........|
|00000080| 2f 2a 0d 09 46 69 6c 65 | 3a 09 09 56 6f 6c 2e 63 |/*..File|:..Vol.c|
|00000090| 0d 0d 09 43 6f 6e 74 61 | 69 6e 73 3a 09 54 68 69 |...Conta|ins:.Thi|
|000000a0| 73 20 69 73 20 74 68 65 | 20 56 6f 6c 20 64 63 6d |s is the| Vol dcm|
|000000b0| 64 2e 0d 0d 09 57 72 69 | 74 74 65 6e 20 62 79 3a |d....Wri|tten by:|
|000000c0| 09 53 63 6f 74 74 20 44 | 6f 75 67 6c 61 73 2c 20 |.Scott D|ouglas, |
|000000d0| 44 61 76 65 20 4c 79 6f | 6e 73 2e 0d 0d 09 43 6f |Dave Lyo|ns....Co|
|000000e0| 70 79 72 69 67 68 74 3a | 09 a9 20 31 39 38 38 2c |pyright:|.. 1988,|
|000000f0| 31 39 39 33 20 62 79 20 | 41 70 70 6c 65 20 43 6f |1993 by |Apple Co|
|00000100| 6d 70 75 74 65 72 2c 20 | 49 6e 63 2e 2c 20 61 6c |mputer, |Inc., al|
|00000110| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|00000120| 64 2e 0d 0d 09 43 68 61 | 6e 67 65 20 48 69 73 74 |d....Cha|nge Hist|
|00000130| 6f 72 79 20 28 6d 6f 73 | 74 20 72 65 63 65 6e 74 |ory (mos|t recent|
|00000140| 20 66 69 72 73 74 29 3a | 0d 0d 09 09 20 3c 32 3e | first):|.... <2>|
|00000150| 09 20 39 2f 31 30 2f 39 | 33 09 44 41 4c 09 09 46 |. 9/10/9|3.DAL..F|
|00000160| 69 78 65 64 20 76 6f 6c | 75 6d 65 2d 6e 61 6d 65 |ixed vol|ume-name|
|00000170| 20 6d 61 74 63 68 69 6e | 67 20 74 6f 20 77 6f 72 | matchin|g to wor|
|00000180| 6b 20 61 67 61 69 6e 20 | 28 77 61 73 20 75 73 69 |k again |(was usi|
|00000190| 6e 67 0d 09 09 09 09 09 | 09 09 09 09 6e 6f 6e 2d |ng......|....non-|
|000001a0| 70 72 6f 74 6f 74 79 70 | 65 64 20 22 45 51 55 41 |prototyp|ed "EQUA|
|000001b0| 4c 53 54 52 49 4e 47 22 | 20 69 6e 73 74 65 61 64 |LSTRING"| instead|
|000001c0| 20 6f 66 20 45 71 75 61 | 6c 53 74 72 69 6e 67 29 | of Equa|lString)|
|000001d0| 2e 20 20 57 69 64 65 6e | 65 64 0d 09 09 09 09 09 |. Widen|ed......|
|000001e0| 09 09 09 09 74 68 65 20 | 76 6f 6c 75 6d 65 2d 6e |....the |volume-n|
|000001f0| 61 6d 65 20 63 6f 6c 75 | 6d 6e 2e 20 20 43 68 61 |ame colu|mn. Cha|
|00000200| 6e 67 65 64 20 22 56 43 | 42 20 61 74 22 20 74 6f |nged "VC|B at" to|
|00000210| 20 22 56 43 42 20 61 64 | 64 72 22 20 61 6e 64 20 | "VCB ad|dr" and |
|00000220| 6d 61 64 65 0d 09 09 09 | 09 09 09 09 09 09 69 74 |made....|......it|
|00000230| 20 61 6c 69 67 6e 20 66 | 6f 72 20 33 32 2d 62 69 | align f|or 32-bi|
|00000240| 74 20 61 64 64 72 65 73 | 73 65 73 2e 0d 0d 09 4d |t addres|ses....M|
|00000250| 6f 64 69 66 69 63 61 74 | 69 6f 6e 20 68 69 73 74 |odificat|ion hist|
|00000260| 6f 72 79 3a 0d 09 09 32 | 39 4e 6f 76 38 38 20 73 |ory:...2|9Nov88 s|
|00000270| 61 64 09 09 72 65 76 69 | 73 65 64 20 66 6f 72 20 |ad..revi|sed for |
|00000280| 6e 65 77 20 64 63 6d 64 | 20 6e 61 6d 65 73 2e 20 |new dcmd| names. |
|00000290| 20 64 69 73 70 6c 61 79 | 20 6d 6f 72 65 20 69 6e | display| more in|
|000002a0| 66 6f 2e 0d 09 09 20 35 | 4f 63 74 38 38 20 73 61 |fo.... 5|Oct88 sa|
|000002b0| 64 09 09 77 72 69 74 74 | 65 6e 2e 0d 0d 09 54 68 |d..writt|en....Th|
|000002c0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 4d 50 57 20 |e follow|ing MPW |
|000002d0| 63 6f 6d 6d 61 6e 64 73 | 20 77 69 6c 6c 20 62 75 |commands| will bu|
|000002e0| 69 6c 64 20 74 68 65 20 | 64 63 6d 64 20 61 6e 64 |ild the |dcmd and|
|000002f0| 20 63 6f 70 79 20 69 74 | 20 74 6f 20 74 68 65 0d | copy it| to the.|
|00000300| 09 22 44 65 62 75 67 67 | 65 72 20 50 72 65 66 73 |."Debugg|er Prefs|
|00000310| 22 20 66 69 6c 65 20 69 | 6e 20 74 68 65 20 53 79 |" file i|n the Sy|
|00000320| 73 74 65 6d 20 66 6f 6c | 64 65 72 2e 20 54 68 65 |stem fol|der. The|
|00000330| 20 64 63 6d 64 27 73 20 | 6e 61 6d 65 20 69 6e 0d | dcmd's |name in.|
|00000340| 09 4d 61 63 73 42 75 67 | 20 77 69 6c 6c 20 62 65 |.MacsBug| will be|
|00000350| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|00000360| 20 66 69 6c 65 20 62 75 | 69 6c 74 20 62 79 20 74 | file bu|ilt by t|
|00000370| 68 65 20 4c 69 6e 6b 65 | 72 2e 0d 09 59 6f 75 20 |he Linke|r...You |
|00000380| 6d 75 73 74 20 66 69 72 | 73 74 20 63 6f 70 79 20 |must fir|st copy |
|00000390| 64 63 6d 64 2e 68 2c 20 | 64 63 6d 64 47 6c 75 65 |dcmd.h, |dcmdGlue|
|000003a0| 2e 61 2e 6f 20 61 6e 64 | 20 44 52 75 6e 54 69 6d |.a.o and| DRunTim|
|000003b0| 65 2e 6f 20 66 72 6f 6d | 20 74 68 65 0d 09 43 20 |e.o from| the..C |
|000003c0| 53 61 6d 70 6c 65 73 20 | 66 6f 6c 64 65 72 20 69 |Samples |folder i|
|000003d0| 6e 74 6f 20 74 68 69 73 | 20 66 6f 6c 64 65 72 2e |nto this| folder.|
|000003e0| 0d 0d 09 43 20 50 75 74 | 2e 63 0d 09 43 20 56 6f |...C Put|.c..C Vo|
|000003f0| 6c 2e 63 0d 09 4c 69 6e | 6b 20 64 63 6d 64 47 6c |l.c..Lin|k dcmdGl|
|00000400| 75 65 2e 61 2e 6f 20 56 | 6f 6c 2e 63 2e 6f 20 70 |ue.a.o V|ol.c.o p|
|00000410| 75 74 2e 63 2e 6f 20 44 | 52 75 6e 74 69 6d 65 2e |ut.c.o D|Runtime.|
|00000420| 6f 20 22 7b 4c 69 62 72 | 61 72 69 65 73 7d 22 49 |o "{Libr|aries}"I|
|00000430| 6e 74 65 72 66 61 63 65 | 2e 6f 20 2d 6f 20 56 6f |nterface|.o -o Vo|
|00000440| 6c 0d 09 42 75 69 6c 64 | 44 63 6d 64 20 56 6f 6c |l..Build|Dcmd Vol|
|00000450| 20 31 30 30 32 0d 09 45 | 63 68 6f 20 27 69 6e 63 | 1002..E|cho 'inc|
|00000460| 6c 75 64 65 20 22 56 6f | 6c 22 3b 27 09 7c 09 52 |lude "Vo|l";'.|.R|
|00000470| 65 7a 20 2d 61 20 2d 6f | 20 22 7b 73 79 73 74 65 |ez -a -o| "{syste|
|00000480| 6d 46 6f 6c 64 65 72 7d | 44 65 62 75 67 67 65 72 |mFolder}|Debugger|
|00000490| 20 50 72 65 66 73 22 0d | 2a 2f 0d 0d 23 69 6e 63 | Prefs".|*/..#inc|
|000004a0| 6c 75 64 65 20 3c 54 79 | 70 65 73 2e 68 3e 0d 23 |lude <Ty|pes.h>.#|
|000004b0| 69 6e 63 6c 75 64 65 20 | 3c 4d 65 6d 6f 72 79 2e |include |<Memory.|
|000004c0| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 4f 53 55 |h>.#incl|ude <OSU|
|000004d0| 74 69 6c 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |tils.h>.|#include|
|000004e0| 20 3c 46 69 6c 65 73 2e | 68 3e 0d 0d 23 69 6e 63 | <Files.|h>..#inc|
|000004f0| 6c 75 64 65 20 22 64 63 | 6d 64 2e 68 22 0d 23 69 |lude "dc|md.h".#i|
|00000500| 6e 63 6c 75 64 65 20 22 | 70 75 74 2e 68 22 0d 0d |nclude "|put.h"..|
|00000510| 23 64 65 66 69 6e 65 20 | 56 43 42 51 48 64 72 20 |#define |VCBQHdr |
|00000520| 28 28 51 48 64 72 50 74 | 72 29 30 78 33 35 36 29 |((QHdrPt|r)0x356)|
|00000530| 0d 0d 0d 73 74 61 74 69 | 63 20 76 6f 69 64 20 44 |...stati|c void D|
|00000540| 72 61 77 48 64 72 28 29 | 0d 7b 0d 2f 2f 09 09 09 |rawHdr()|.{.//...|
|00000550| 09 09 20 20 20 20 20 20 | 20 20 20 31 20 20 20 20 |.. | 1 |
|00000560| 20 20 20 20 20 32 20 20 | 20 20 20 20 20 20 20 33 | 2 | 3|
|00000570| 20 20 20 20 20 20 20 20 | 20 34 20 20 20 20 20 20 | | 4 |
|00000580| 20 20 20 35 20 20 20 20 | 20 20 20 20 20 36 20 20 | 5 | 6 |
|00000590| 20 20 20 20 20 20 20 37 | 0d 2f 2f 09 09 09 09 09 | 7|.//.....|
|000005a0| 31 32 33 34 35 36 37 38 | 39 30 31 32 33 34 35 36 |12345678|90123456|
|000005b0| 37 38 39 30 31 32 33 34 | 35 36 37 38 39 30 31 32 |78901234|56789012|
|000005c0| 33 34 35 36 37 38 39 30 | 31 32 33 34 35 36 37 38 |34567890|12345678|
|000005d0| 39 30 31 32 33 34 35 36 | 37 38 39 30 31 32 33 34 |90123456|78901234|
|000005e0| 35 36 37 38 39 30 31 32 | 33 34 35 36 37 38 39 0d |56789012|3456789.|
|000005f0| 09 64 63 6d 64 44 72 61 | 77 4c 69 6e 65 28 22 5c |.dcmdDra|wLine("\|
|00000600| 70 76 52 65 66 20 56 6f | 6c 20 20 20 20 20 20 20 |pvRef Vo|l |
|00000610| 20 20 20 20 20 20 20 20 | 20 20 20 46 6c 67 20 64 | | Flg d|
|00000620| 52 65 66 20 44 72 69 76 | 65 20 46 53 49 44 20 23 |Ref Driv|e FSID #|
|00000630| 42 6c 6b 20 42 6c 6b 53 | 69 7a 20 23 46 69 6c 65 |Blk BlkS|iz #File|
|00000640| 73 20 23 44 69 72 73 20 | 20 42 6c 73 64 20 44 69 |s #Dirs | Blsd Di|
|00000650| 72 20 56 43 42 20 61 64 | 64 72 22 29 3b 0d 7d 0d |r VCB ad|dr");.}.|
|00000660| 0d 0d 73 74 61 74 69 63 | 20 76 6f 69 64 20 44 72 |..static| void Dr|
|00000670| 61 77 56 43 42 28 56 43 | 42 2a 20 76 63 62 70 29 |awVCB(VC|B* vcbp)|
|00000680| 0d 7b 0d 09 50 75 74 55 | 48 65 78 57 6f 72 64 28 |.{..PutU|HexWord(|
|00000690| 76 63 62 70 2d 3e 76 63 | 62 56 52 65 66 4e 75 6d |vcbp->vc|bVRefNum|
|000006a0| 29 3b 0d 09 50 75 74 53 | 70 61 63 65 28 29 3b 0d |);..PutS|pace();.|
|000006b0| 09 50 75 74 50 53 74 72 | 54 72 75 6e 63 54 6f 28 |.PutPStr|TruncTo(|
|000006c0| 76 63 62 70 2d 3e 76 63 | 62 56 4e 2c 31 35 2b 31 |vcbp->vc|bVN,15+1|
|000006d0| 30 29 3b 0d 09 50 75 74 | 53 70 61 63 65 28 29 3b |0);..Put|Space();|
|000006e0| 0d 09 50 75 74 43 68 61 | 72 28 28 76 63 62 70 2d |..PutCha|r((vcbp-|
|000006f0| 3e 76 63 62 46 6c 61 67 | 73 20 26 20 30 78 38 30 |>vcbFlag|s & 0x80|
|00000700| 30 30 29 20 3f 20 27 44 | 27 20 3a 20 27 64 27 29 |00) ? 'D|' : 'd')|
|00000710| 3b 0d 09 50 75 74 43 68 | 61 72 28 28 76 63 62 70 |;..PutCh|ar((vcbp|
|00000720| 2d 3e 76 63 62 41 74 72 | 62 20 26 20 30 78 38 30 |->vcbAtr|b & 0x80|
|00000730| 30 30 29 20 3f 20 27 53 | 27 20 3a 20 27 73 27 29 |00) ? 'S|' : 's')|
|00000740| 3b 0d 09 50 75 74 43 68 | 61 72 28 28 76 63 62 70 |;..PutCh|ar((vcbp|
|00000750| 2d 3e 76 63 62 41 74 72 | 62 20 26 20 30 78 34 30 |->vcbAtr|b & 0x40|
|00000760| 30 30 29 20 3f 20 27 48 | 27 20 3a 20 27 68 27 29 |00) ? 'H|' : 'h')|
|00000770| 3b 0d 09 50 75 74 53 70 | 61 63 65 28 29 3b 0d 09 |;..PutSp|ace();..|
|00000780| 50 75 74 55 48 65 78 57 | 6f 72 64 28 76 63 62 70 |PutUHexW|ord(vcbp|
|00000790| 2d 3e 76 63 62 44 52 65 | 66 4e 75 6d 29 3b 0d 09 |->vcbDRe|fNum);..|
|000007a0| 50 75 74 53 70 61 63 65 | 28 29 3b 0d 09 50 75 74 |PutSpace|();..Put|
|000007b0| 53 70 61 63 65 28 29 3b | 0d 09 50 75 74 55 48 65 |Space();|..PutUHe|
|000007c0| 78 57 6f 72 64 28 76 63 | 62 70 2d 3e 76 63 62 44 |xWord(vc|bp->vcbD|
|000007d0| 72 76 4e 75 6d 29 3b 0d | 09 50 75 74 53 70 61 63 |rvNum);.|.PutSpac|
|000007e0| 65 28 29 3b 0d 09 50 75 | 74 55 48 65 78 57 6f 72 |e();..Pu|tUHexWor|
|000007f0| 64 28 76 63 62 70 2d 3e | 76 63 62 46 53 49 44 29 |d(vcbp->|vcbFSID)|
|00000800| 3b 0d 09 50 75 74 53 70 | 61 63 65 28 29 3b 0d 09 |;..PutSp|ace();..|
|00000810| 50 75 74 55 48 65 78 57 | 6f 72 64 28 76 63 62 70 |PutUHexW|ord(vcbp|
|00000820| 2d 3e 76 63 62 4e 6d 41 | 6c 42 6c 6b 73 29 3b 0d |->vcbNmA|lBlks);.|
|00000830| 09 50 75 74 53 70 61 63 | 65 28 29 3b 0d 09 50 75 |.PutSpac|e();..Pu|
|00000840| 74 55 48 65 78 5a 54 6f | 28 76 63 62 70 2d 3e 76 |tUHexZTo|(vcbp->v|
|00000850| 63 62 41 6c 42 6c 6b 53 | 69 7a 2c 36 2c 34 37 2b |cbAlBlkS|iz,6,47+|
|00000860| 31 30 29 3b 0d 09 50 75 | 74 53 70 61 63 65 28 29 |10);..Pu|tSpace()|
|00000870| 3b 0d 09 50 75 74 55 48 | 65 78 5a 54 6f 28 76 63 |;..PutUH|exZTo(vc|
|00000880| 62 70 2d 3e 76 63 62 46 | 69 6c 43 6e 74 2c 36 2c |bp->vcbF|ilCnt,6,|
|00000890| 35 34 2b 31 30 29 3b 0d | 09 50 75 74 53 70 61 63 |54+10);.|.PutSpac|
|000008a0| 65 28 29 3b 0d 09 50 75 | 74 55 48 65 78 5a 54 6f |e();..Pu|tUHexZTo|
|000008b0| 28 76 63 62 70 2d 3e 76 | 63 62 44 69 72 43 6e 74 |(vcbp->v|cbDirCnt|
|000008c0| 2c 36 2c 36 31 2b 31 30 | 29 3b 0d 09 50 75 74 53 |,6,61+10|);..PutS|
|000008d0| 70 61 63 65 28 29 3b 0d | 09 50 75 74 55 48 65 78 |pace();.|.PutUHex|
|000008e0| 5a 54 6f 28 76 63 62 70 | 2d 3e 76 63 62 46 6e 64 |ZTo(vcbp|->vcbFnd|
|000008f0| 72 49 6e 66 6f 5b 30 5d | 2c 36 2c 37 30 2b 31 30 |rInfo[0]|,6,70+10|
|00000900| 29 3b 0d 09 50 75 74 53 | 70 61 63 65 28 29 3b 0d |);..PutS|pace();.|
|00000910| 09 50 75 74 55 48 65 78 | 5a 54 6f 28 28 75 6e 73 |.PutUHex|ZTo((uns|
|00000920| 69 67 6e 65 64 20 6c 6f | 6e 67 29 76 63 62 70 2c |igned lo|ng)vcbp,|
|00000930| 38 2c 37 37 2b 31 30 29 | 3b 0d 09 50 75 74 4c 69 |8,77+10)|;..PutLi|
|00000940| 6e 65 28 29 3b 0d 7d 0d | 0d 0d 2f 2f 20 50 72 65 |ne();.}.|..// Pre|
|00000950| 66 69 78 50 53 74 72 0d | 2f 2f 0d 2f 2f 20 52 65 |fixPStr.|//.// Re|
|00000960| 74 75 72 6e 73 20 74 72 | 75 65 20 69 66 20 61 73 |turns tr|ue if as|
|00000970| 74 72 20 69 73 20 65 71 | 75 61 6c 20 74 6f 20 61 |tr is eq|ual to a|
|00000980| 20 70 72 65 66 69 78 20 | 6f 66 20 62 73 74 72 2e | prefix |of bstr.|
|00000990| 0d 2f 2f 20 61 73 74 72 | 20 6d 75 73 74 20 6e 6f |.// astr| must no|
|000009a0| 74 20 62 65 20 6c 6f 6e | 67 65 72 20 74 68 61 6e |t be lon|ger than|
|000009b0| 20 33 31 20 63 68 61 72 | 61 63 74 65 72 73 2e 0d | 31 char|acters..|
|000009c0| 0d 73 74 61 74 69 63 20 | 42 6f 6f 6c 65 61 6e 20 |.static |Boolean |
|000009d0| 50 72 65 66 69 78 50 53 | 74 72 28 63 6f 6e 73 74 |PrefixPS|tr(const|
|000009e0| 20 53 74 72 32 35 35 20 | 61 73 74 72 2c 20 63 6f | Str255 |astr, co|
|000009f0| 6e 73 74 20 53 74 72 32 | 35 35 20 62 73 74 72 29 |nst Str2|55 bstr)|
|00000a00| 0d 7b 0d 09 63 68 61 72 | 20 6e 65 77 73 74 72 5b |.{..char| newstr[|
|00000a10| 33 32 5d 3b 0d 09 69 6e | 74 20 61 6c 65 6e 20 3d |32];..in|t alen =|
|00000a20| 20 2a 61 73 74 72 3b 0d | 09 69 6e 74 20 62 6c 65 | *astr;.|.int ble|
|00000a30| 6e 20 3d 20 2a 62 73 74 | 72 3b 0d 0d 09 69 66 20 |n = *bst|r;...if |
|00000a40| 28 61 6c 65 6e 20 3c 3d | 20 62 6c 65 6e 29 0d 09 |(alen <=| blen)..|
|00000a50| 20 20 7b 0d 09 09 42 6c | 6f 63 6b 4d 6f 76 65 28 | {...Bl|ockMove(|
|00000a60| 62 73 74 72 2b 31 2c 6e | 65 77 73 74 72 2b 31 2c |bstr+1,n|ewstr+1,|
|00000a70| 61 6c 65 6e 29 3b 0d 09 | 09 6e 65 77 73 74 72 5b |alen);..|.newstr[|
|00000a80| 30 5d 20 3d 20 61 6c 65 | 6e 3b 0d 09 09 72 65 74 |0] = ale|n;...ret|
|00000a90| 75 72 6e 20 45 71 75 61 | 6c 53 74 72 69 6e 67 28 |urn Equa|lString(|
|00000aa0| 61 73 74 72 2c 6e 65 77 | 73 74 72 2c 66 61 6c 73 |astr,new|str,fals|
|00000ab0| 65 2c 74 72 75 65 29 3b | 0d 09 20 20 7d 0d 0d 09 |e,true);|.. }...|
|00000ac0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 09 0d 7d |return f|alse;..}|
|00000ad0| 0d 0d 0d 0d 70 61 73 63 | 61 6c 20 76 6f 69 64 20 |....pasc|al void |
|00000ae0| 43 6f 6d 6d 61 6e 64 45 | 6e 74 72 79 28 64 63 6d |CommandE|ntry(dcm|
|00000af0| 64 42 6c 6f 63 6b 2a 20 | 70 61 72 61 6d 50 74 72 |dBlock* |paramPtr|
|00000b00| 29 0d 7b 0d 09 73 77 69 | 74 63 68 20 28 70 61 72 |).{..swi|tch (par|
|00000b10| 61 6d 50 74 72 2d 3e 72 | 65 71 75 65 73 74 29 0d |amPtr->r|equest).|
|00000b20| 09 20 20 7b 0d 09 09 63 | 61 73 65 20 64 63 6d 64 |. {...c|ase dcmd|
|00000b30| 49 6e 69 74 3a 0d 09 09 | 09 62 72 65 61 6b 3b 0d |Init:...|.break;.|
|00000b40| 0d 09 09 63 61 73 65 20 | 64 63 6d 64 48 65 6c 70 |...case |dcmdHelp|
|00000b50| 3a 0d 09 09 09 64 63 6d | 64 44 72 61 77 4c 69 6e |:....dcm|dDrawLin|
|00000b60| 65 28 22 5c 70 76 6f 6c | 20 5b 76 52 65 66 4e 75 |e("\pvol| [vRefNu|
|00000b70| 6d 7c 64 72 76 4e 75 6d | 7c 5c 22 76 6f 6c 20 6e |m|drvNum||\"vol n|
|00000b80| 61 6d 65 5c 22 5d 22 29 | 3b 0d 09 09 09 64 63 6d |ame\"]")|;....dcm|
|00000b90| 64 44 72 61 77 4c 69 6e | 65 28 22 5c 70 20 20 20 |dDrawLin|e("\p |
|00000ba0| 44 69 73 70 6c 61 79 73 | 20 76 6f 6c 75 6d 65 20 |Displays| volume |
|00000bb0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 66 6f 72 20 |informat|ion for |
|00000bc0| 74 68 65 20 67 69 76 65 | 6e 20 76 72 65 66 6e 75 |the give|n vrefnu|
|00000bd0| 6d 2c 20 76 6f 6c 75 6d | 65 20 6e 61 6d 65 20 6f |m, volum|e name o|
|00000be0| 72 20 61 6c 6c 20 6d 6f | 75 6e 74 65 64 20 76 6f |r all mo|unted vo|
|00000bf0| 6c 75 6d 65 73 2e 22 29 | 3b 0d 09 09 09 64 63 6d |lumes.")|;....dcm|
|00000c00| 64 44 72 61 77 4c 69 6e | 65 28 22 5c 70 20 20 20 |dDrawLin|e("\p |
|00000c10| 20 20 20 46 6c 61 67 73 | 20 61 72 65 20 44 2f 64 | Flags| are D/d|
|00000c20| 3d 44 69 72 74 79 2c 20 | 53 2f 73 3d 53 6f 66 74 |=Dirty, |S/s=Soft|
|00000c30| 77 61 72 65 20 6c 6f 63 | 6b 65 64 2c 20 48 2f 68 |ware loc|ked, H/h|
|00000c40| 3d 48 61 72 64 77 61 72 | 65 20 6c 6f 63 6b 65 64 |=Hardwar|e locked|
|00000c50| 2e 22 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 0d |.");....|break;..|
|00000c60| 09 09 63 61 73 65 20 64 | 63 6d 64 44 6f 49 74 3a |..case d|cmdDoIt:|
|00000c70| 0d 09 09 20 20 7b 0d 09 | 09 09 42 6f 6f 6c 65 61 |... {..|..Boolea|
|00000c80| 6e 20 64 6f 4f 6e 65 56 | 43 42 20 3d 20 66 61 6c |n doOneV|CB = fal|
|00000c90| 73 65 3b 0d 09 09 09 6c | 6f 6e 67 20 76 72 65 66 |se;....l|ong vref|
|00000ca0| 3b 0d 09 09 09 73 68 6f | 72 74 20 63 3b 0d 09 09 |;....sho|rt c;...|
|00000cb0| 09 42 6f 6f 6c 65 61 6e | 20 68 61 76 65 56 6f 6c |.Boolean| haveVol|
|00000cc0| 4e 61 6d 65 20 3d 20 66 | 61 6c 73 65 3b 0d 09 09 |Name = f|alse;...|
|00000cd0| 09 53 74 72 32 35 35 20 | 76 6f 6c 6e 61 6d 65 3b |.Str255 |volname;|
|00000ce0| 0d 09 09 09 56 43 42 2a | 20 76 63 62 70 3b 0d 09 |....VCB*| vcbp;..|
|00000cf0| 09 09 69 6e 74 20 6e 75 | 6d 76 63 62 73 20 3d 20 |..int nu|mvcbs = |
|00000d00| 30 3b 0d 09 09 09 42 6f | 6f 6c 65 61 6e 20 66 6f |0;....Bo|olean fo|
|00000d10| 75 6e 64 4f 6e 65 20 3d | 20 66 61 6c 73 65 3b 0d |undOne =| false;.|
|00000d20| 0d 09 09 09 64 63 6d 64 | 53 77 61 70 57 6f 72 6c |....dcmd|SwapWorl|
|00000d30| 64 73 28 29 3b 0d 0d 09 | 09 09 64 63 6d 64 44 72 |ds();...|..dcmdDr|
|00000d40| 61 77 4c 69 6e 65 28 22 | 5c 70 44 69 73 70 6c 61 |awLine("|\pDispla|
|00000d50| 79 69 6e 67 20 56 6f 6c | 75 6d 65 20 43 6f 6e 74 |ying Vol|ume Cont|
|00000d60| 72 6f 6c 20 42 6c 6f 63 | 6b 73 22 29 3b 0d 0d 09 |rol Bloc|ks");...|
|00000d70| 09 09 2f 2f 20 67 65 74 | 20 6c 6f 77 2d 6d 65 6d |..// get| low-mem|
|00000d80| 6f 72 79 20 76 61 6c 75 | 65 73 20 61 66 74 65 72 |ory valu|es after|
|00000d90| 20 64 63 6d 64 53 77 61 | 70 57 6f 72 6c 64 73 28 | dcmdSwa|pWorlds(|
|00000da0| 29 0d 09 09 09 76 63 62 | 70 20 3d 20 28 56 43 42 |)....vcb|p = (VCB|
|00000db0| 2a 29 20 28 56 43 42 51 | 48 64 72 2d 3e 71 48 65 |*) (VCBQ|Hdr->qHe|
|00000dc0| 61 64 29 3b 0d 0d 09 09 | 09 63 20 3d 20 64 63 6d |ad);....|.c = dcm|
|00000dd0| 64 50 65 65 6b 41 74 4e | 65 78 74 43 68 61 72 28 |dPeekAtN|extChar(|
|00000de0| 29 3b 0d 09 09 09 69 66 | 20 28 63 20 3d 3d 20 27 |);....if| (c == '|
|00000df0| 22 27 20 7c 7c 20 63 20 | 3d 3d 20 27 5c 27 27 29 |"' || c |== '\'')|
|00000e00| 0d 09 09 09 20 20 7b 0d | 09 09 09 09 68 61 76 65 |.... {.|....have|
|00000e10| 56 6f 6c 4e 61 6d 65 20 | 3d 20 74 72 75 65 3b 0d |VolName |= true;.|
|00000e20| 09 09 09 09 28 76 6f 69 | 64 29 20 64 63 6d 64 47 |....(voi|d) dcmdG|
|00000e30| 65 74 4e 65 78 74 50 61 | 72 61 6d 65 74 65 72 28 |etNextPa|rameter(|
|00000e40| 76 6f 6c 6e 61 6d 65 29 | 3b 0d 09 09 09 20 20 7d |volname)|;.... }|
|00000e50| 0d 09 09 09 65 6c 73 65 | 0d 09 09 09 09 28 76 6f |....else|.....(vo|
|00000e60| 69 64 29 20 64 63 6d 64 | 47 65 74 4e 65 78 74 45 |id) dcmd|GetNextE|
|00000e70| 78 70 72 65 73 73 69 6f | 6e 28 26 76 72 65 66 2c |xpressio|n(&vref,|
|00000e80| 20 26 64 6f 4f 6e 65 56 | 43 42 29 3b 0d 0d 09 09 | &doOneV|CB);....|
|00000e90| 09 69 66 20 28 64 6f 4f | 6e 65 56 43 42 29 0d 09 |.if (doO|neVCB)..|
|00000ea0| 09 09 09 76 72 65 66 20 | 3d 20 28 73 68 6f 72 74 |...vref |= (short|
|00000eb0| 29 20 76 72 65 66 3b 0d | 0d 09 09 09 77 68 69 6c |) vref;.|....whil|
|00000ec0| 65 20 28 76 63 62 70 29 | 0d 09 09 09 20 20 7b 0d |e (vcbp)|.... {.|
|00000ed0| 09 09 09 09 69 66 20 28 | 28 64 6f 4f 6e 65 56 43 |....if (|(doOneVC|
|00000ee0| 42 20 26 26 20 28 76 63 | 62 70 2d 3e 76 63 62 56 |B && (vc|bp->vcbV|
|00000ef0| 52 65 66 4e 75 6d 20 3d | 3d 20 76 72 65 66 20 7c |RefNum =|= vref ||
|00000f00| 7c 20 76 63 62 70 2d 3e | 76 63 62 44 72 76 4e 75 || vcbp->|vcbDrvNu|
|00000f10| 6d 20 3d 3d 20 76 72 65 | 66 29 29 20 7c 7c 0d 09 |m == vre|f)) ||..|
|00000f20| 09 09 09 09 28 68 61 76 | 65 56 6f 6c 4e 61 6d 65 |....(hav|eVolName|
|00000f30| 20 26 26 20 50 72 65 66 | 69 78 50 53 74 72 28 76 | && Pref|ixPStr(v|
|00000f40| 6f 6c 6e 61 6d 65 2c 76 | 63 62 70 2d 3e 76 63 62 |olname,v|cbp->vcb|
|00000f50| 56 4e 29 29 20 7c 7c 0d | 09 09 09 09 09 28 21 64 |VN)) ||.|.....(!d|
|00000f60| 6f 4f 6e 65 56 43 42 20 | 26 26 20 21 68 61 76 65 |oOneVCB |&& !have|
|00000f70| 56 6f 6c 4e 61 6d 65 29 | 29 0d 09 09 09 09 20 20 |VolName)|)..... |
|00000f80| 7b 0d 09 09 09 09 09 6e | 75 6d 76 63 62 73 2b 2b |{......n|umvcbs++|
|00000f90| 3b 0d 09 09 09 09 09 69 | 66 20 28 21 66 6f 75 6e |;......i|f (!foun|
|00000fa0| 64 4f 6e 65 29 0d 09 09 | 09 09 09 20 20 7b 0d 09 |dOne)...|... {..|
|00000fb0| 09 09 09 09 09 44 72 61 | 77 48 64 72 28 29 3b 0d |.....Dra|wHdr();.|
|00000fc0| 09 09 09 09 09 09 66 6f | 75 6e 64 4f 6e 65 20 3d |......fo|undOne =|
|00000fd0| 20 74 72 75 65 3b 0d 09 | 09 09 09 09 20 20 7d 0d | true;..|.... }.|
|00000fe0| 09 09 09 09 09 44 72 61 | 77 56 43 42 28 76 63 62 |.....Dra|wVCB(vcb|
|00000ff0| 70 29 3b 0d 09 09 09 09 | 20 20 7d 0d 09 09 09 09 |p);.....| }.....|
|00001000| 69 66 20 28 70 61 72 61 | 6d 50 74 72 2d 3e 61 62 |if (para|mPtr->ab|
|00001010| 6f 72 74 65 64 29 20 62 | 72 65 61 6b 3b 0d 09 09 |orted) b|reak;...|
|00001020| 09 09 69 66 20 28 76 63 | 62 70 2d 3e 71 4c 69 6e |..if (vc|bp->qLin|
|00001030| 6b 20 3d 3d 20 30 29 0d | 09 09 09 09 09 69 66 20 |k == 0).|.....if |
|00001040| 28 76 63 62 70 20 21 3d | 20 28 56 43 42 2a 29 28 |(vcbp !=| (VCB*)(|
|00001050| 56 43 42 51 48 64 72 2d | 3e 71 54 61 69 6c 29 29 |VCBQHdr-|>qTail))|
|00001060| 0d 09 09 09 09 09 09 64 | 63 6d 64 44 72 61 77 4c |.......d|cmdDrawL|
|00001070| 69 6e 65 28 22 5c 70 56 | 43 42 20 71 75 65 75 65 |ine("\pV|CB queue|
|00001080| 20 64 6f 65 73 20 6e 6f | 74 20 65 6e 64 20 61 74 | does no|t end at|
|00001090| 20 56 43 42 51 48 64 72 | 2e 71 54 61 69 6c 22 29 | VCBQHdr|.qTail")|
|000010a0| 3b 0d 09 09 09 09 76 63 | 62 70 20 3d 20 28 56 43 |;.....vc|bp = (VC|
|000010b0| 42 2a 29 76 63 62 70 2d | 3e 71 4c 69 6e 6b 3b 0d |B*)vcbp-|>qLink;.|
|000010c0| 09 09 09 20 20 7d 0d 09 | 09 09 69 66 20 28 21 70 |... }..|..if (!p|
|000010d0| 61 72 61 6d 50 74 72 2d | 3e 61 62 6f 72 74 65 64 |aramPtr-|>aborted|
|000010e0| 29 0d 09 09 09 09 69 66 | 20 28 68 61 76 65 56 6f |).....if| (haveVo|
|000010f0| 6c 4e 61 6d 65 20 7c 7c | 20 64 6f 4f 6e 65 56 43 |lName ||| doOneVC|
|00001100| 42 29 0d 09 09 09 09 20 | 20 7b 0d 09 09 09 09 09 |B)..... | {......|
|00001110| 69 66 20 28 21 66 6f 75 | 6e 64 4f 6e 65 29 0d 09 |if (!fou|ndOne)..|
|00001120| 09 09 09 09 09 69 66 20 | 28 68 61 76 65 56 6f 6c |.....if |(haveVol|
|00001130| 4e 61 6d 65 29 0d 09 09 | 09 09 09 09 20 20 7b 0d |Name)...|.... {.|
|00001140| 09 09 09 09 09 09 09 50 | 75 74 50 53 74 72 28 22 |.......P|utPStr("|
|00001150| 5c 70 4e 6f 20 6d 6f 75 | 6e 74 65 64 20 76 6f 6c |\pNo mou|nted vol|
|00001160| 75 6d 65 73 20 6d 61 74 | 63 68 20 5c 22 22 29 3b |umes mat|ch \"");|
|00001170| 0d 09 09 09 09 09 09 09 | 50 75 74 50 53 74 72 28 |........|PutPStr(|
|00001180| 76 6f 6c 6e 61 6d 65 29 | 3b 0d 09 09 09 09 09 09 |volname)|;.......|
|00001190| 09 50 75 74 43 68 61 72 | 28 27 22 27 29 3b 0d 09 |.PutChar|('"');..|
|000011a0| 09 09 09 09 09 09 50 75 | 74 4c 69 6e 65 28 29 3b |......Pu|tLine();|
|000011b0| 0d 09 09 09 09 09 09 20 | 20 7d 0d 09 09 09 09 09 |....... | }......|
|000011c0| 09 65 6c 73 65 0d 09 09 | 09 09 09 09 20 20 7b 0d |.else...|.... {.|
|000011d0| 09 09 09 09 09 09 09 50 | 75 74 50 53 74 72 28 22 |.......P|utPStr("|
|000011e0| 5c 70 4e 6f 20 6d 6f 75 | 6e 74 65 64 20 76 6f 6c |\pNo mou|nted vol|
|000011f0| 75 6d 65 73 20 6d 61 74 | 63 68 20 22 29 3b 0d 09 |umes mat|ch ");..|
|00001200| 09 09 09 09 09 09 50 75 | 74 55 48 65 78 57 6f 72 |......Pu|tUHexWor|
|00001210| 64 28 76 72 65 66 29 3b | 0d 09 09 09 09 09 09 09 |d(vref);|........|
|00001220| 50 75 74 4c 69 6e 65 28 | 29 3b 0d 09 09 09 09 09 |PutLine(|);......|
|00001230| 09 20 20 7d 0d 09 09 09 | 09 20 20 7d 0d 09 09 09 |. }....|. }....|
|00001240| 09 65 6c 73 65 0d 09 09 | 09 09 20 20 7b 0d 09 09 |.else...|.. {...|
|00001250| 09 09 09 50 75 74 55 44 | 65 63 28 6e 75 6d 76 63 |...PutUD|ec(numvc|
|00001260| 62 73 29 3b 0d 09 09 09 | 09 09 50 75 74 50 53 74 |bs);....|..PutPSt|
|00001270| 72 28 22 5c 70 20 56 43 | 42 73 22 29 3b 0d 09 09 |r("\p VC|Bs");...|
|00001280| 09 09 09 50 75 74 4c 69 | 6e 65 28 29 3b 0d 09 09 |...PutLi|ne();...|
|00001290| 09 09 20 20 7d 0d 0d 09 | 09 09 64 63 6d 64 53 77 |.. }...|..dcmdSw|
|000012a0| 61 70 57 6f 72 6c 64 73 | 28 29 3b 0d 09 09 09 62 |apWorlds|();....b|
|000012b0| 72 65 61 6b 3b 0d 09 09 | 20 20 7d 0d 0d 09 09 64 |reak;...| }....d|
|000012c0| 65 66 61 75 6c 74 3a 0d | 09 09 09 50 75 74 50 53 |efault:.|...PutPS|
|000012d0| 74 72 28 22 5c 70 75 6e | 6b 6e 6f 77 6e 20 72 65 |tr("\pun|known re|
|000012e0| 71 75 65 73 74 20 22 29 | 3b 0d 09 09 09 50 75 74 |quest ")|;....Put|
|000012f0| 55 44 65 63 28 70 61 72 | 61 6d 50 74 72 2d 3e 72 |UDec(par|amPtr->r|
|00001300| 65 71 75 65 73 74 29 3b | 0d 09 09 09 50 75 74 4c |equest);|....PutL|
|00001310| 69 6e 65 28 29 3b 0d 09 | 09 09 62 72 65 61 6b 3b |ine();..|..break;|
|00001320| 0d 09 20 20 7d 0d 7d 20 | 2f 2f 20 43 6f 6d 6d 61 |.. }.} |// Comma|
|00001330| 6e 64 45 6e 74 72 79 0d | 00 00 00 00 00 00 00 00 |ndEntry.|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 01 00 00 00 01 1e | 00 00 00 1e 00 00 00 32 |........|.......2|
|00001390| e4 48 6e ff 00 4e ba fb | 74 48 7a 00 20 4e ba fa |.Hn..N..|tHz. N..|
|000013a0| 2e 2f 0e 4e ba fd bc 4f | ee fe ac 4c df 1c f8 4e |./.N...O|...L...N|
|000013b0| 05 56 6f 6c 2e 63 02 00 | 00 00 50 61 72 74 53 49 |.Vol.c..|..PartSI|
|000013c0| 54 21 00 00 00 00 00 00 | 00 00 00 00 46 9b 00 00 |T!......|....F...|
|000013d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 a9 b7 20 98 00 00 | 00 00 00 00 01 50 2d 20 |.... ...|.....P- |
|00001400| 2d 2d 2d 2d 2d 2d 2d 2d | 20 2d 2d 2d 2d 2d 2d 2d |--------| -------|
|00001410| 2d 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 00 3b 20 20 |- ------|----.; |
|00001420| 49 6e 64 78 20 4d 48 6e | 64 6c 20 20 20 20 4c 65 |Indx MHn|dl Le|
|00001430| 66 74 20 20 49 44 20 20 | 57 64 20 20 20 48 74 20 |ft ID |Wd Ht |
|00001440| 20 20 4d 65 6e 75 50 72 | 6f 63 20 46 6c 61 67 73 | MenuPr|oc Flags|
|00001450| 20 20 20 20 54 69 74 6c | 65 01 29 0e 6d 65 6e 75 | Titl|e.).menu|
|00001460| 54 69 74 6c 65 53 61 76 | 65 28 00 03 29 20 20 0c |TitleSav|e(..) .|
|00001470| 20 20 6c 61 73 74 48 4d | 65 6e 75 28 00 08 6d 62 | lastHM|enu(..mb|
|00001480| 00 00 00 1a 06 50 20 06 | 00 00 05 36 2e 35 64 36 |.....P .|...6.5d6|
|00001490| 0d 4d 61 63 73 62 75 67 | 20 36 2e 35 64 36 00 00 |.Macsbug| 6.5d6..|
|000014a0| 01 00 00 00 01 1e 00 00 | 00 1e 00 00 00 32 00 8e |........|.....2..|
|000014b0| 43 8c 1c 48 00 00 00 1c | 00 32 00 00 76 65 72 73 |C..H....|.2..vers|
|000014c0| 00 00 00 0a 00 02 ff ff | 00 00 00 00 00 8e 40 2c |........|......@,|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+